package pers.wensheng.patterns.behavioral_pattern.visitor_pattern.foundation.entity;

/**
 * 主人类
 */
public class Owner implements Person {
    /**
     * 喂猫
     * @param cat
     */
    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂猫");
    }

    /**
     * 喂狗
     * @param dog
     */
    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂狗");
    }
}
